package com.fqgj.xjd.user.mapper;

import com.fqgj.xjd.user.entity.UserAuthDataEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * name:认证数据
 * auth:ting.li@qianli-inc.com
 * date:2018/1/4 11:34
 * version: v1.0.0
 **/
public interface UserAuthDataMapper {
    /**
     * 根据userCode查询认证数据
     * @param userCode
     * @return
     */
    List<UserAuthDataEntity> selectByUserCode(String userCode);

    /**
     * 根据id查询认证数据
     * @param id
     * @return
     */
    UserAuthDataEntity selectByPrimaryKey(Long id);

    /**
     * 新增认证数据
     */
    void insert(UserAuthDataEntity entity);

    /**
     * 更新
     * @param entity
     */
    void updateByPrimaryKey(UserAuthDataEntity entity);

    /**
     * 删除
     * @param entity
     */
    void deleteByPrimaryKey(UserAuthDataEntity entity);
}
